//
//  ParserRSS.h
//  Demo
//
//  Created by LAZYGUY on 25/08/2011.
//  Copyright 2011 HUTECH. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "News.h"
@protocol ParserRSSDelegate <NSObject>
- (void)receivedItems: (NSArray*)items;
@end

@interface ParserRSS : NSObject<NSXMLParserDelegate> {
    id _delegate;
    News *news;
    NSMutableData *responseData;
    NSMutableArray *newsArray;
    
    NSMutableString *currentTitle;
    NSMutableString *currentLink;
    NSMutableString *currentSummary;
    NSMutableString *currentImgLink;
    NSMutableString *currentDate;
    NSString *currentElement;
}
@property (nonatomic,retain) IBOutlet News *news;
@property (nonatomic,retain) IBOutlet NSMutableData *responseData;
@property (nonatomic,retain) IBOutlet NSMutableArray *newsArray;
@property (nonatomic,retain) IBOutlet NSMutableString *currentTitle;
@property (nonatomic,retain) IBOutlet NSMutableString *currentLink;
@property (nonatomic,retain) IBOutlet NSMutableString *currentSummary;
@property (nonatomic,retain) IBOutlet NSMutableString *currentImgLink;
@property (nonatomic,retain) IBOutlet NSMutableString *currentDate;
@property (nonatomic,retain) IBOutlet NSString *currentElement;

- (void)parseRssFeed:(NSString *)url withDelegate:(id)aDelegate;
- (id)delegate;
- (void)setDelegate:(id)new_delegate;


@end
